package usb;

import java.util.Scanner;
public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[][] a = new int[3][3];
        System.out.println("请输入各班学生的成绩");
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                System.out.println("第" + (i+1) + "班，第" + (j+1) + "位学生的成绩是：");
                a[i][j] = sc.nextInt();
            }
        }
        System.out.println("成绩总览");
        for (int i = 0; i < a.length; i++) {
            System.out.println((i+1)+"班");
            for (int j = 0; j < a[i].length; j++) {
                System.out.print("第"+(j+1)+"位同学:"+ "\t"+a[i][j]+"分");
                System.out.println();
            }
            System.out.println();
        }
    }
}
